package com.atguigu.gmall.list.feign;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;
/**
 * 商品搜索调用feign接口
 */
@FeignClient(name = "service-list",path = "/api/search",contextId = "searchFeign")
public interface SearchFeign {
    /**
     * 根据条件搜索商品
     * @param searchData
     * @return
     */
    @GetMapping
    public Map<String,Object> search(@RequestParam Map<String,String> searchData);
}
